package w4

import java.util.{HashMap => _}
import scala.collection.mutable._
import w5.{DigitalCamera => Xj}

case class Dog(name: String, age: Int)

object TestCamera {
  //求数组中大于v,小于v,等于v的数的个数
  def getCounts(arr: Array[Int], v: Int): (Int, Int, Int) = {
    val v1 = arr.count(_ < v)
    val v2 = arr.count(_ == v)
    val v3 = arr.count(_ > v)
    (v1, v2, v3)
  }

  def main(args: Array[String]): Unit = {
    val d = Dog("小混混", 4)

    //相机
    val c = new Xj("佳能", 9999)
    c.takePhoto("教学楼")

    val m = HashMap[String, String]()
  }
}
